File manager - Edit - /home/autoph/public_html/projects/event-registration-api/app/Models/Event.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Event extends Model { use HasFactory; protected $table = "golf_events"; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $guarded = [ ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; public function booths() { return $this->belongsToMany( Booth::class, EventBooth::class, 'event_id', 'boot_id' )->withPivot(['active']); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings